package com.tiancheng.trade.settlement.vo.settlement.admin;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * 清分情况查询
 */
@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class SettlementSituationQueryVO {
    /**
     * 报表统计时间
     */
    private String reportTime;

    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 业务场景 1-酒店，2-机票，3-门票，4-精品路线，5-汽车票，6-自由行，7交通，8-包车
     */
    private String orderSource;

    /**
     * 当前页
     */
    Integer currentPage;

    /**
     * 页大小
     */
    Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize || pageSize <= 0) {
            pageSize = 10;
        }
        return pageSize;
    }


    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }

}
